package com.wangbo.multi.exception.enums;

import com.wangbo.multi.exception.BaseExceptionEnum;
import lombok.AllArgsConstructor;

/**
 * @Package: com.company.demo
 * @Author: Mr.Waves
 * @Date: 2020-03-05 20:03
 * @Description: 请求错误
 **/
@AllArgsConstructor
public enum BadRequestExceptionEnum implements BaseExceptionEnum {
    INVALID_PARAMETER(400, "无效参数！"),
    REQUIRED_PARAMETER_MISSING(400, "缺少必要参数！"),
    INVALID_CREDENTIALS(400,"无效凭证！"),
    INVALID_CAPTCHA(400,"无效验证码！"),
    INVALID_USERNAME(400, "无效用户名！"),
    INVALID_FID(400, "无效fid！"),
    DUPLICATE_USERNAME(400,"用户名重复！"),
    CAPTCHA_EXPIRED(400,"验证码已过期"),
    ACCOUNT_LOCKED(400, "该账号被锁定，请联系系统管理员"),
    PASSWORD_INCORRECT(400, "密码错误，请重新登录"),
    DELTA_LT_1(400,"步长小于1"),

    ;

    private Integer code;
    private String message;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
